﻿using System;

class WhichIsGreater
{

    static void Main()
    {
        int firstnumber;
        int secondnumber;
        Console.Write("Please input first number: ");
        while (true)
        {
            try
            {
                firstnumber = int.Parse(Console.ReadLine());
                break;
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message + "\nPlease re-enter first number:");
            }
        }
        Console.Write("Please input second number: ");
        while (true)
        {
            try
            {
                secondnumber = int.Parse(Console.ReadLine());
                break;
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message + "\nPlease re-enter second number:");
            }
        }
        while (firstnumber > secondnumber)
        {

            Console.WriteLine("First number {0}, is greater then second number {1}", firstnumber, secondnumber);
            Console.ReadLine();
            break;
        }
        while (firstnumber < secondnumber)
        {
            Console.WriteLine("Second number {1}, is greater then furst number {0}", firstnumber, secondnumber);
            Console.ReadLine();
            break;
        }
        while (firstnumber == secondnumber)
        {
            Console.WriteLine("The entered numbers {0} and {1} are equal", firstnumber, secondnumber);
            Console.ReadLine();
            break;
        }
    }
}

